"""
author: Jackson Black
time: 2023-08-20 10-39-49 
"""
from module_.addParams import add_params


# 函数的定义
def add(num1, num2):
    return num1 + num2


# 函数重载
def add(*params):
    sum_ = 0
    for n in params:
        sum_ += n
    return sum_


# 可变参数
def _sum(*params):
    sum_ = 0
    for n in params:
        sum_ += n
    return sum_


# 默认值
def increase(n=9):
    return n + 1


if __name__ == "__main__":
    # print(add(15, 17))
    # print(add(1, 2, 3))
    # print(_sum(1, 2, 3, 46, 4, 8, 7))
    # print(increase(1), increase())
    print(add_params(4, 6, 5, 4, 6, 52, 3, 1, 3, 2))
